package learning.maxent.training;

import learning.data.document.InstanceDocument;
import learning.maxent.inference.IParseScorer;

public class BasicParseScorer implements IParseScorer {

	private MaxentParameters params;
	private InstanceDocument doc;
	
	public float score(int state) {
		return doc.features.dotProduct(params.parameters[state]);
	}

	public void setDocument(InstanceDocument doc) {
		this.doc = doc;
	}
	
	public void setParameters(MaxentParameters params) {
		this.params = params;
	}	
}
